package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.hell.*;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class HellBusiness {

    public static HellUserData getUserData(long userId, int activityId) {
        return DaoHelper.getHellUserDataDaoImpl().getHellUserData(activityId, userId);
    }

    public static Map<Integer, HellNpcConfig> getHellNpcMap(int activityId) {
        return DaoHelper.getHellConfigDaoImpl().getHellNpcMap(activityId);
    }

    public static Map<Integer, HellQualityConfig> getHellQualityMap(int activityId) {
        return DaoHelper.getHellConfigDaoImpl().getHellQualityMap(activityId);
    }

    public static Map<Integer, Map<Integer,Map<Integer, HellEventConfig>>> getHellEventMap(int activityId) {
        return DaoHelper.getHellConfigDaoImpl().getHellEventMap(activityId);
    }

    public static Map<Integer, HellAgeConfig> getHellAgeMap(int activityId) {
        return DaoHelper.getHellConfigDaoImpl().getHellAgeMap(activityId);
    }

    public static boolean addHellUserData(HellUserData userData) {
        return DaoHelper.getHellUserDataDaoImpl().add(userData);
    }

    public static boolean updateHellUserData(HellUserData userData) {
        return DaoHelper.getHellUserDataDaoImpl().update(userData);
    }
}
